package com.liy.cloud.base;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.liy.cloud.auth.client.EnableAuthClient;

@SpringBootApplication
@RestController
@EnableAuthClient
@MapperScan({
	"com.das.cloud.osc.base.dao", 
	"com.das.cloud.osc.common.system.dao", 
	"com.das.cloud.osc.common.base.dao"})
@ComponentScan({ 
	"com.das.cloud.osc.base.service", 
	"com.das.cloud.osc.common.system.service", 
	"com.das.cloud.osc.base.rest", 
	"com.das.cloud.osc.common.utils", 
	"com.das.cloud.osc.common.base.service"})
public class BaseServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(BaseServiceApplication.class, args);
	}

	@RequestMapping("/")
	public String index() {
		return "Base server....!";
	}

}

